$(document).ready(function () {

    $('.nav-item .account').hide();
    $('.nav-item .application').show().css({'background':'rgb(251,251,251)'});

    $('.nav .nav-item').click(function () {
        $(this).find('.app_child').slideToggle();
    });

    $.post("developer/sessionDevUser",function (json) {
        if( json ) {
            $('.devLoginName').html(json.devName);
            $('.devUser-email').html(json.devEmail);
        }
    });

    $('#loginOut').on('click',function () {
        $.getJSON('developer/loginOut',function (json) {
            if( json && json==true) {
                window.location.href= "developer/do/developerLogin";
            }
        });
    });
});